package com.yan.Demo;

public class demo2 {

    String str = new String("tarena");

    char[] ch={'a','b','c'};

    public static void main(String[] args) {

        demo2 demo2 = new demo2();
        System.out.println(demo2);
        demo2.change(demo2.str, demo2.ch);
        System.out.print(demo2.str+" and ");
        System.out.print(demo2.ch);

    }



    public void change(String str,char ch[]){

        str="test ok";
        ch[0]='g';

    }

}
